<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<html>
	<head><%@ include file="/commons/include/list_page.inc"%>
		<title>Untitled Document</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<link rel="stylesheet" href="<s:url value="/css/style.css"/>">

		<style type="text/css">
<!--
.STYLE1 {color: #ff0000}
-->
</style>
	</head>
	<script type="text/javascript" src="<s:url value="/script/fenYe.js"/>"></script>
	<script type="text/javascript" src="<s:url value="/script/selfResize.js"/>"></script>
	<script type="text/javascript"
		src="<s:url value="/script/easyajax.js"/>"></script>
	<script>
function checkSpBalance(pageInfo){
    if(form1.month.value!=""&&form1.year.value==""){
    	alert("按月查询必需指定年份");
    	return;
    }
    var url="<s:url value="/sp/listBalance.action"/>";
    if(pageInfo){
 		url+="?"+pageInfo;
    }
	callSynchronized(url,function(XML){//异步调用
	    var ajax=new AjaxObj();
	    ajax.xml=XML.responseXML;
	   // alert(ajax.xml.xml);
	    ajax.tableName=$("table"+form1.INF1.value);
	    ajax.root="data";
	    ajax.createTable();
	},"form1");
}
function chType(){
    $("fenYe").innerHTML="";
	for(i=0;i<form1.INF1.options.length;i++){
		if(form1.INF1.options[i].selected==true){
			$("table"+form1.INF1.options[i].value).style.display="";
		}else{
			$("table"+form1.INF1.options[i].value).style.display="none";
		}
	}
}
</script>
	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" >
				<table width="980" border="0" cellspacing="0" cellpadding="0" align="center" height="100%">
			<tr>
				<td>
					<table width="100%" border="0" cellpadding="0" cellspacing="0"
						background="<s:url value="/images/new/gxzl_index_2.gif"/>">
						<tr>
							<td width="20" height="32">
								&nbsp;
							</td>
							<td width="20">
								<img src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
									height="12" />
							</td>
							<td>
								当前位置：<font
											color="#003399">合作商结算查询</font>
							</td>
							<td width="60">
							</td>
							<td width="200">
							</td>
							<td width="100">
							</td>
						</tr>
					</table>
				</td>
			</tr>
  <tr height="100%"> 
    <td  background=""  class="leftbg" valign="top"> 
      <table width="90%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
        <tr>
          <td valign="top" align="center">
			<br>
					<table width="840" border="0" align="center" cellspacing="0" cellpadding="0"
						background="<s:url value="/images/catalog_manage_8b_1.gif"/>">
						<tr>
							<td><img src="<s:url value="/images/catalog_manage_8.gif"/>" width=840
								height=11 alt=""></td>
						</tr>
						<tr>
							<td align="center" >
			                         
									        <form name="form1">
											<table width="95%" border="0" cellspacing="0" cellpadding="0"
												align="center" class=tablecolor2>
												<tr>
													<td width="15%" height="50">
														<div align="left">
															业务接入平台
														</div>
													</td>
													<td >
														<select  style="width:154" name="INF1" onChange="chType()">
															<option value="610004765">
																短信
															</option>
															<option value="610004945">
																商务领航
															</option>
															<option value="610004985">
																七彩铃音
															</option>
															<option value="610005346">
																C_短信
															</option>
															<option value="610005349">
																C_WAP
															</option>
															<option value="610005350">
																C_彩铃
															</option>
															<option value="610005355">
																互联星空
															</option>
															<option value="610005352">
																C_其他平台
															</option>
														</select>
													</td>
													<td width="16%">
														<div align="left">
															SP/AP名称（模糊匹配）
														</div>
													</td>
													<td width="34%">
														<input type="text"  name="INF2" value="" />
													</td>
												</tr>
												<tr>
													<td width="15%" height="50">
														<div align="left">
															状 态
														</div>
													</td>
													<td >
														<select  style="width:154" name="INF4">
														    <option value="">
																全部
															</option>
															<option value="70A">
																申请中
															</option>
															<option value="70C">
																完成
															</option>
															<option value="70X">
																失效
															</option>
														</select>
													</td>
													<td width="16%">
														<div align="left">
															月结年结
														</div>
													</td>
													<td width="34%">
													    <select name="compare" style="width:50px">
													        <option value=""/>
													    	<option value=">">
																大于
															</option>
															<option value="=" selected>
																等于
															</option>
															<option value="<">
																小于
															</option>
															<option value=">=">
																大于等于
															</option>
															<option value="<=">
																小于等于
															</option>
													    </select>
													    <select name="year" style="width:60px">
													        <option value=""/>
													    	<%
													    		for(int i=1982;i<2019;i++){
													    			out.println("<option value='"+i+"'>"+i+"</option>");
													    		}
													    	 %>
													    </select>
													    <select name="month" style="width:38px">
													         <option value=""/>
													    	<option value="01">
																01
															</option>
															<option value="02">
																02
															</option>
															<option value="03">
																03
															</option>
															<option value="04">
																04
															</option>
															<option value="05">
																05
															</option>
															<option value="06">
																06
															</option>
															<option value="07">
																07
															</option>
															<option value="08">
																08
															</option>
															<option value="09">
																09
															</option>
															<option value="10">
																10
															</option>
															<option value="11">
																11
															</option>
															<option value="12">
																12
															</option>
													    </select>
													</td>
												</tr>
												<tr>
													<td width="15%" height="50">
														<div align="left">
															模板分类
														</div>
													</td>
													<td width="34%">
														<select name="INF5" style="width:154px">
												    		<option value="HLXK-OLD">原互联星空</option>
												    		<option value="HLXK-CBJS">流媒体成本结算</option>
												    		<option value="HLXK-FCJS">流媒体成分结算</option>
												    </select>
													</td>
													
													<td width="15%" height="50">
														<div align="left">
															SP编码
														</div>
													</td>
													<td width="34%">
														<input type="text"  name="INF6" value="" />
													</td>
												</tr>

											</table>
											<TABLE width="98%" cellSpacing=1 cellPadding=0 align="center">
												<TR height=30>
													<TD align=left width="60%">
														<input type="button" name="Submit2" onclick="checkSpBalance()" value="查 询">&nbsp;
														<input type="reset" name="reset"  value="清 空">
													</TD>
													<TD>
													</TD>
												</TR>
											</table>
											</form>
											<div id="fenYe" width="100%" funName="checkSpBalance"></div>
											<table id="table610004765" width="95%" border="0" cellspacing="0" cellpadding="0"
												align="center" class=tablecolor2>
												<tr>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="0">
														<div align="center">
															<strong>SP公司名称</strong>
														</div>
													</td>
													<td width="15%"   bgcolor="9AC2EB"  jtext="fieldValue"  jindex="1">
														<div align="center">
															<strong>SP_ID</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="2">
														<div align="center">
															<strong>总实收信息费（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="3">
														<div align="center">
															<strong>应收通信费（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="4">
														<div align="center">
															<strong>实际应付SP金额（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="5">
														<div align="center">
															<strong>备注</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="6">
														<div align="center">
															<strong>月份</strong>
														</div>
													</td>
												</tr>
											</table>
											<table style="display:none" id="table610004945" width="95%" border="0" cellspacing="0" cellpadding="0"
												align="center" class=tablecolor2>
												<tr>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="0">
														<div align="center">
															<strong>APID</strong>
														</div>
													</td>
													<td width="15%"   bgcolor="9AC2EB"  jtext="fieldValue"  jindex="1">
														<div align="center">
															<strong>AP名称</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="2">
														<div align="center">
															<strong>总收入（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="3">
														<div align="center">
															<strong>电信收入（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="4">
														<div align="center">
															<strong>AP收入（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="5">
														<div align="center">
															<strong>月份</strong>
														</div>
													</td>
												</tr>
											</table>
											<table  style="display:none" id="table610004985" width="95%" border="0" cellspacing="0" cellpadding="0"
												align="center" class=tablecolor2>
												<tr>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="0">
														<div align="center">
															<strong>SP公司名称</strong>
														</div>
													</td>
													<td width="15%"   bgcolor="9AC2EB"  jtext="fieldValue"  jindex="1">
														<div align="center">
															<strong>SP_ID</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="2">
														<div align="center">
															<strong>应收通信费（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="3">
														<div align="center">
															<strong>应付SP金额（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="4">
														<div align="center">
															<strong>月份</strong>
														</div>
													</td>
												</tr>
											</table>
											<table  style="display:none"  id="table610005346" width="95%" border="0" cellspacing="0" cellpadding="0"
												align="center" class=tablecolor2>
												<tr>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="0">
														<div align="center">
															<strong>SPID</strong>
														</div>
													</td>
													<td width="15%"   bgcolor="9AC2EB"  jtext="fieldValue"  jindex="1">
														<div align="center">
															<strong>SP公司名称</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="2">
														<div align="center">
															<strong>实收信息费</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="3">
														<div align="center">
															<strong>合作方分成</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="4">
														<div align="center">
															<strong>向合作方收取的通信费/佣金</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="5">
														<div align="center">
															<strong>实际支付给合作方的分成</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="6">
														<div align="center">
															<strong>备注</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="7">
														<div align="center">
															<strong>月份</strong>
														</div>
													</td>
												</tr>
											</table>
											<table  style="display:none"  id="table610005349" width="95%" border="0" cellspacing="0" cellpadding="0"
												align="center" class=tablecolor2>
												<tr>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="0">
														<div align="center">
															<strong>SP公司名称</strong>
														</div>
													</td>
													<td width="15%"   bgcolor="9AC2EB"  jtext="fieldValue"  jindex="1">
														<div align="center">
															<strong>SP_ID</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="2">
														<div align="center">
															<strong>实收信息费（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="3">
														<div align="center">
															<strong>合作方分成</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="4">
														<div align="center">
															<strong>备注</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="5">
														<div align="center">
															<strong>月份</strong>
														</div>
													</td>
												</tr>
											</table>
											<table  style="display:none" id="table610005350" width="95%" border="0" cellspacing="0" cellpadding="0"
												align="center" class=tablecolor2>
												<tr>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="0">
														<div align="center">
															<strong>SP公司名称</strong>
														</div>
													</td>
													<td width="15%"   bgcolor="9AC2EB"  jtext="fieldValue"  jindex="1">
														<div align="center">
															<strong>SP_ID</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="2">
														<div align="center">
															<strong>实收信息费（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="3">
														<div align="center">
															<strong>合作方分成</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="4">
														<div align="center">
															<strong>备注</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="5">
														<div align="center">
															<strong>月份</strong>
														</div>
													</td>
												</tr>
											</table>
											<table style="display:none"  id="table610005355" width="95%" border="0" cellspacing="0" cellpadding="0"
												align="center" class=tablecolor2>
												<tr>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="0">
														<div align="center">
															<strong>SPID</strong>
														</div>
													</td>
													<td width="15%"   bgcolor="9AC2EB"  jtext="fieldValue"  jindex="1">
														<div align="center">
															<strong>SP公司名称</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="2">
														<div align="center">
															<strong>本地消费（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="3">
														<div align="center">
															<strong>漫游来访消费（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="4">
														<div align="center">
															<strong>合计（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="5">
														<div align="center">
															<strong>电信分成_比例</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="6">
														<div align="center">
															<strong>电信分成_金额（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="7">
														<div align="center">
															<strong>sp分成_套餐结算（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="8">
														<div align="center">
															<strong>sp分成_比例</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="9">
														<div align="center">
															<strong>sp分成_金额（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="10">
														<div align="center">
															<strong>总计(电信+SP)（元）</strong>
														</div>
													</td>
												</tr>
											</table>
											<table  style="display:none" id="table610005352" width="95%" border="0" cellspacing="0" cellpadding="0"
												align="center" class=tablecolor2>
												<tr>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="0">
														<div align="center">
															<strong>SP公司名称</strong>
														</div>
													</td>
													<td width="15%"   bgcolor="9AC2EB"  jtext="fieldValue"  jindex="1">
														<div align="center">
															<strong>SP_ID</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="2">
														<div align="center">
															<strong>实收信息费（元）</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="3">
														<div align="center">
															<strong>合作方分成</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="4">
														<div align="center">
															<strong>备注</strong>
														</div>
													</td>
													<td    bgcolor="9AC2EB"  jtext="fieldValue"  jindex="5">
														<div align="center">
															<strong>月份</strong>
														</div>
													</td>
												</tr>
											</table>
									                         
							</td>
						</tr>
						<tr>
							<td>
								<img src="<s:url value="/images/catalog_manage_8a.gif"/>" width="840"
								height="9">
							</td>
						</tr>
					</table>
	</body>
</html>
<script>
checkSpBalance();
function show(url){
	window.open(url);
}
function initLoad(){
	f_iframeResize();
}
window.onload = initLoad;
</script>